package com.example.webmagic;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * Created by Geekkiller on 2017/11/16.
 */
public class BaoZouPipeLine implements Pipeline {

    @Override
    public void process(ResultItems resultItems, Task task) {
        BaozouNews news = resultItems.get("news");
        JDBCDao.insert(news);//将数据插入数据库
    }
}
